<extend name="./Application/Common/View/block/base.php" />
<block name="header">
    <include file="./Application/Admin/View/block/easyui_header.php" />
    <link href="/extend/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
    <link href="__PUBLIC__/css/Content/show.css" rel="stylesheet" type="text/css" />
</block>
<block name="bdoy">
    <body>
        <form action="" method="post" onsubmit="return $(this).form('validate');">
            <input type="hidden" name="id" value="{$item['id']}"/>
            <table cellspacing="0" width="100%" class="">
                <tr>
                    <td class="label"><strong>{:LANG('pump_station')}: </strong></td>
                    <td class="form-line">
                        <select class="easyui-combobox nav-select" name="pumpid"
                                data-options="prompt:'{:LANG('pls_input')}{:LANG('parent')}',required:true">
                            <option></option>
                            <volist name="list" id="parent">
                                <option value="{$parent['id']}" <if condition="$item['pumpid'] eq $parent['id'] ">selected="selected"</if>>{$parent['pups_name']}</option>
                            </volist>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('pump_type')}: </strong></td>
                    <td class="form-line">
                        <select class="easyui-combobox nav-select" name="type"
                                data-options="prompt:'{:LANG('pls_input')}{:LANG('parent')}',required:true">
                            <option></option>
                            {:get_pump_type_option($item['type'])}
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('pump_number')}: </strong></td>
                    <td class="form-line">
                        <input value="{$item['pump_number']}" class="easyui-textbox easyui-validatebox input-text" name="pump_number" id="pump_number" size="20" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'{:LANG('pls_input')}{:LANG('pump_number')}',required:true,validType:'length[1,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('pump_flow')}: </strong></td>
                    <td class="form-line">
                        <input value="{$item['pump_flow']}" class="easyui-numberbox easyui-validatebox input-text" name="pump_flow" id="pump_flow" size="20" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'{:LANG('pls_input')}{:LANG('pump_flow')}{:LANG('only_num')},{:LANG('unit')}{:LANG('fl_x')}',required:true,validType:'length[1,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('pump_power')}: </strong></td>
                    <td class="form-line">
                        <input value="{$item['pump_power']}" class="easyui-numberbox easyui-validatebox input-text" name="pump_power" id="pump_power" size="20" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'{:LANG('pump_power')}{:LANG('pump_power')}{:LANG('only_num')},{:LANG('unit')}{:LANG('gl_x')}',required:true,validType:'length[1,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('status')}: </strong></td>
                    <td class="form-line radio-line">
                        <label>{:LANG('pass')}</label><input class="radio" type="radio" name="status" value="1" id="yes">
                        <label>{:LANG('no_pass')}</label><input class="radio" type="radio" name="status" value="0" id="no">
                    </td>
                </tr>


                <tr>
                    <td class="label"></td>
                    <td class="form-line">
                        <input type="submit" class="submit-button bule-button" value="{:LANG('save')}">
                        <input type="button" onclick="close_dialog()" class="submit-button" value="{:LANG('cancel')}">
                    </td>
                </tr>
            </table>
        </form>
    </body>
</block>
<block name="footExtendJs">
    <script>
        var is_pass = {$item['status']};
        if(is_pass == 1){
            $('#yes').attr('checked', 'checked');
        }else{
            $('#no').attr('checked', 'checked');
        }
    </script>
</block>
